<extend name="public@base"/>
<block name="main">
  <div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
      <li class="active"><a href="{:url('storage/index')}">{:lang('ADMIN_STORAGE_INDEX')}</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" method="post" action="{:url('storage/settingPost')}">
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-type">存储类型</label>
        <div class="col-md-6 col-sm-10">
          <select class="form-control" id="input-type" name="type"><foreach name="storages" item="vo">
            <php>$type_selected=isset($type)&&$type==$key?"true":"false";</php>
            <option value="{$key}" data-selected="{$type_selected}">{$vo.name}</option></foreach>
          </select>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button class="btn btn-primary js-ajax-submit" type="submit" data-refresh="0">{:lang('SAVE')}</button>
        </div>
      </div>
    </form>
  </div>
</block>